package com.thb.pay.api.payment.fallback;

import com.thb.pay.api.payment.PayProductServiceApi;
import com.thb.pay.api.payment.vo.req.PayProductPageReq;
import com.thb.pay.api.payment.vo.req.PayProductReq;
import com.thb.pay.api.payment.vo.resp.PayProductVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class PayProductServiceApiFallbackFactory implements FallbackFactory<PayProductServiceApi> {


    @Override
    public PayProductServiceApi create(Throwable throwable) {
        return new PayProductServiceApi() {
            @Override
            public PageResult<PayProductVo> findPage(PayProductPageReq pageReq) {
                return null;
            }

            @Override
            public List<PayProductVo> findAllList() {
                return null;
            }

            @Override
            public List<PayProductVo> findListByProductIds(List<Long> productIds) {
                return null;
            }

            @Override
            public PayProductVo getById(Long id) {
                return null;
            }

            @Override
            public void add(PayProductReq payProductReq) {

            }

            @Override
            public void update(PayProductReq payProductReq) {

            }
        };
    }
}